package com.example.devicemanage.dao;

import com.example.devicemanage.entity.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;



@Mapper
public interface UserMapper {

    //将sql语句注解写到函数上，自动封装结果
    @Select("SELECT * FROM user WHERE uid=#{uid}")
    User queryUserById(int uid);

}
